package com.fortune.dto.in.clientOrder;

import org.hibernate.validator.constraints.NotBlank;

import com.fortune.constants.enums.ProduceType;

import io.swagger.annotations.ApiModelProperty;

/**
 * Created by Administrator on 2018/5/28 0028.
 */
public class DOrderProductDto {
    @ApiModelProperty(example="商品id")
    @NotBlank(message="商品id不能为空")
    private String productId;
    @ApiModelProperty(example = "厂商ID")
    private String mid;
    @ApiModelProperty(example = "商品类型(厂商M自营D)")
    private ProduceType type;
    //销售
    private ClientOrderPurchaseGiftDto sale;
    //赠送
    private ClientOrderPurchaseGiftDto gift;
	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}
	public String getMid() {
		return mid;
	}
	public void setMid(String mid) {
		this.mid = mid;
	}
	public ProduceType getType() {
		return type;
	}
	public void setType(ProduceType type) {
		this.type = type;
	}
	public ClientOrderPurchaseGiftDto getSale() {
		return sale;
	}
	public void setSale(ClientOrderPurchaseGiftDto sale) {
		this.sale = sale;
	}
	public ClientOrderPurchaseGiftDto getGift() {
		return gift;
	}
	public void setGift(ClientOrderPurchaseGiftDto gift) {
		this.gift = gift;
	}
	@Override
	public String toString() {
		return "DOrderProductDto [productId=" + productId + ", mid=" + mid + ", type=" + type + ", sale=" + sale
				+ ", gift=" + gift + "]";
	}
}
